package com.springboot.dubbo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.springboot.dubbo.service.DubboConsumerService;
import com.springboot.dubbo.service.DubboProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by yangxiaodong on 2019/11/13.
 */
@RestController
@RequestMapping("/dubbo")
public class TestController {

    @Autowired
    DubboConsumerService dubboConsumerService;

    @GetMapping("/test")
    public String getTest() {
       return dubboConsumerService.getTest();
    }
}
